package cn.demo.mvc.mapper;


import cn.demo.mvc.model.Book;

import java.util.List;

public interface BookMapper {
    public List<Book> listBooks();
    public List<Book> searchBook(String name);
    public int addBook(Book book);
    public int updateBook(Book book);
    public int deleteBookById(int id);
    public int addRelation(int authorId, int bookId);
}
